<script>
import zhCN from '../locale/zh-cn';

export default {
  name: 'DLocaleProvider',
  props: {
    locale: {
      type: Object,
      default: zhCN.locale
    }
  },
  provide() {
    return {
      ddLocaleData: this.locale
    };
  },
  render() {
    return this.$slots.default ? this.$slots.default[0] : null;
  }
};
</script>
